import request from '@/config/axios'

interface PageVo {
  pageNo: number
  pageSize: number
  name?: string
  
}
interface InfoPage extends PageVo {
  signStatus: number | string // "审核状态 0待签署 1 已签署
}
// 获取合同信息分页(签署)
export const crtInfoPage = (params: InfoPage) => {
  return request.get({ url: '/ctr/info/page',params })
}
// 获取合同信息详情
export const crtInfoGet = (params: {
  id: number
}) => {
  return request.get({ url: '/ctr/info/get',params })
}
// 合同签署

export const crtInfoSign = (data: {
  ctrNo: string
}) => {
  return request.post({ url: '/ctr/info/sign',data })
}

// 获取合同归档分页
export const crtInfoFillingPage = (params: InfoPage) => {
  return request.get({ url: '/ctr/info-filing/page',params })
}

// 模板审核日志
export const operatorLog = (params: PageVo) => {
  return request.get({ url: '/ctr/operator-log/page',params })
}
interface TplReviewVo {
  reviewStatus: string | number  //审核状态
  tplNo: string | number //模板编号
  remark?: string  // 备注
}
// 模板审核
export const tplReview = (data: TplReviewVo) => {
  return request.post({ url: '/ctr/tpl/review',data })
}